package fintecher.com.service;


import fintecher.com.bean.Upload;
import fintecher.com.exception.FileNameLengthLimitExceededException;
import fintecher.com.exception.InvalidExtensionException;
import org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface IAttachmentService {
	/**
	 * 
	 * @title: upload
	 * @description: 文件上传
	 * @param request
	 * @param file
	 * @return
	 * @return: Attachment
	 */
	public Upload upload(HttpServletRequest request, MultipartFile file, Upload uploadEntity) throws FileSizeLimitExceededException, InvalidExtensionException, FileNameLengthLimitExceededException, IOException;


}
